package com.xiaoshuidi.cloud.module.bpm.controller.admin.swo.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Schema(description = "管理后台 - wo 服务工单申请 Response VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SwoTicketRespVO extends SwoTicketBaseVO {

    @Schema(description = "服务工单主键", required = true)
    private Long id;

    @Schema(description = "创建时间", required = true)
    private LocalDateTime createTime;

    @Schema(description = "服务类型名")
    private String serviceTypeName;

    @Schema(description = "状态名 - 租客端用")
    private String statusName;

    @Schema(description = "跟进人员name")
    private String followUpUserName;

    @Schema(description = "状态名 - 小程序用")
    private String handleState;

    @Schema(description = "门店名")
    private String apartmentName;

    List<ReceiptsRecord> records;

    @Data
    @Accessors(chain = true)
    public static class ReceiptsRecord{
        private String id;
        @Schema(
                description = "支付流水号"
        )
        private String tradeSerialNo;
        @Schema(
                description = "杂费金额",
                required = true
        )
        private BigDecimal extrasAmount;
        @Schema(
                description = "付款方式(0 alipay 支付宝 |1 dida 滴答付 |2 weixin 微信 |3 cash 现金 |4 bank 银行转账|5 system 系统标记为已支付|6 pos 线下POS |7 h2ome 水滴金融 |8 llian 连连支付 |9,  other 其他 |10 allinpay 银行卡在线支付|11 allinpaywx 微信在线支付|12 allinpayh5 银行卡小额支付 |13 pinganwx 微信支付 |14 daikou 银行代扣|15 ldpay 快捷支付|16 ldalipay 支付宝支付,"
        )
        private String payMethod;
        @Schema(
                description = "此订单实际支付时间"
        )
        private LocalDateTime actualPayTime;
    }
}
